<html> 
<head> 
    <title>FileNizer</title> 
    <script type="text/javascript" src="AIRAliases.js"></script> 
    <script type="text/javascript"> 
        function appLoad(){ 

			var directory = air.File.documentsDirectory; 
			var contents = directory.getDirectoryListing();  
			var elem = document.createElement( 'div' );
			for (i = 0; i < contents.length; i++)  { 
				elem.innerText += contents[i].name + "\n delete - send to";
				document.body.appendChild( elem );
			}
  
			//browseForOpen...
			//var file = air.File.documentsDirectory;
			//var filters = new Array();

			//filters.push( new air.FileFilter( "Image Files", "*.jpg" ) );

			//file.addEventListener( air.Event.SELECT, doSelect );
			//file.browseForOpen( file, filters );

			//function doSelect( event )
			//{
			//    alert( file.nativePath );
			//}

        }  
		
    </script> 
</head> 
<body onLoad="appLoad()"> 
    <h1>FileNizer - Easilly organize your files.</h1>

</body> 
</html>